All Questions
Tagged with ui-automationwpf
187 questions
1vote
0answers
61views
Why can't RPA Windows or pywinauto libraries click on a background WPF element without a valid WindowHandle, while UiPath can?
Problem Description: I am working with Robot Framework using Python to automate a desktop application developed in the WPF framework. My specific requirement is to click on an element in the ...
0votes
0answers
38views
How to add AutomationID to WPF Combobox items
How I can add AutomationID to WPF Combobox items for test automation? Now when I examine application with Inspect.exe, FlaUInspect or Windows narrator all I can see is a text of a list item. I found ...
0votes
0answers
27views
FLA UI ComboBox with item template
I'm using Fla UI with WPF. I have a ComboBox with an ItemsSource that is a List of instances of a class type, and then the ComboBox has a non trivial ItemTemplate (simplified here) e.g public class ...
0votes
1answer
35views
AutomationElement blocks when application show messagebox
I have an event in my WPF application that looks like this: private void ShiftsDataGrid_OnBeginningEdit(object? sender, DataGridBeginningEditEventArgs e) { if (e.Column == ShiftIdColumn && ...
0votes
0answers
272views
Karate - Robot for WPF Based Desktop application. Unable to identify controls using Inspect.exe as soon as app is launched
I am trying to automate WPF desktop application using Karate Robot DSL. When I am launching application for the very first time, inspect.exe is unable to identify controls within few tabs unless ...
0votes
0answers
1kviews
UIAutomation FlaUI - Detect Both Closing and Opening Windows at the Application Level
I have successfully used the solution for detecting opening windows described here: UIAutomation FlaUI - Detect opening windows on application level. However, I would also like to also detect closing ...
0votes
1answer
165views
How to get all automationelement in screenshot in wpf?
I create a wpf application which takes and shows a screenshot of the monitor. And I wanna get all automation elements in the screenshot, so I call findall() with TreeScope_Children. But it returns ...
1vote
1answer
513views
How to get accessibility info of child contents in top active window C# WPF
I am able to get top active window (title) in my code but I wanted to know how to get all the children(content and controls or elements -image, link, button etc) inside the active top window in my ...
0votes
2answers
2kviews
UIAutomation FlaUI - Detect opening windows on application level
I am using FlaUI for test automation and it works fine so far. Now I am trying to detect opening windows and while plain UIAutomation offers to register an eventhandler for "AutomationElement....
0votes
1answer
546views
How to Inject Mocks in FlaUI/WPF Window?
In my WPF app, I have a MainWindow.xaml and a related MainWindow.xaml.cs. The latter has a property DatabaseAccessor which accesses a database: public partial class MainWindow : System.Windows.Window {...
1vote
0answers
433views
UI Automation of CefSharp window not possible
I'm trying to make CefSharp window accessible with MS UI Automation tools like inspect.exe or UISpy. By default the CefSharp windows is treated by these as an image and the UI properties are ...
2votes
0answers
507views
Winappdriver and selenium in the same automated test
Hi I could do with some help / more experienced eyes. I have a WPF application which I have started automating some UI tests for using winappdriver, upon further investigation it has embeded html in ...
1vote
1answer
71views
Unnamed image in Avalon LayoutAnchorable title
I am new to Avalon Dock. I created a LayoutAnchorable in LayoutAnchorablePane, but found there is an unnamed imaged created next to title textblock. It is not visible and focusable, but could be found ...
1vote
0answers
132views
UIAutomation performance decreasing with application running time
Here is the problem: I have a WPF application which uses UIAutomation in order to create a navigation tree of another WPF application for documentation purposes. The fact is that on some machines the ...
2votes
0answers
779views
How to use snoop WPF for UI Automation
I am trying to automate an app using AutomationElement or TestWhite/FlaUI, the problem is snoopWPF seems the only one that is able to see the elements inside the window due to its injection feature (...